<?php

function tinymce_script()
{
    return  '$(function() { '."\n"
           .'$("textarea.tinymce").tinymce({'."\n"
           .'    // Location of TinyMCE script'."\n"
           .'    script_url :"'.base_url().'scripts/tiny_mce/tiny_mce.js",'."\n"
           .'    height : "480",'."\n"
           .'    // General options'."\n"
           .'    theme : "advanced",'."\n"
//           .'    language : "el",'."\n"
           .'    plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",'."\n"
           .'    // Theme options'."\n"
           .'    theme_advanced_buttons1 : "styleselect,formatselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",'."\n"
           .'    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code",'."\n"
           .'    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,fullscreen",'."\n"
           .'    theme_advanced_buttons4 : "cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking",'."\n"
           .'    theme_advanced_toolbar_location : "top",'."\n"
           .'    theme_advanced_toolbar_align : "left",'."\n"
           .'    theme_advanced_statusbar_location : "bottom",'."\n"
//           .'    theme_advanced_resizing : true,'."\n"
           .'    theme_advanced_resizing : false,'."\n"
           .'    // Example content CSS (should be your site CSS)'."\n"
           .'    content_css : "css/content.css",'."\n"
           .'    // Drop lists for link/image/media/template dialogs'."\n"
           .'    template_external_list_url : "lists/template_list.js",'."\n"
           .'    external_link_list_url : "lists/link_list.js",'."\n"
           .'    external_image_list_url : "lists/image_list.js",'."\n"
           .'    media_external_list_url : "lists/media_list.js",'."\n"
           .'    // Replace values for the template plugin'."\n"
           .'    template_replace_values : {'."\n"
           .'            username : "Some User",'."\n"
           .'            staffid : "991234"'."\n"
           .'        }'."\n"
           .'    });'."\n"
           .'});'."\n";
}